<div class="box">
  <div class="top"><img src="catalog/view/theme/default/image/account.png" alt="" /><?php echo $heading_title; ?></div>    
    <div id="information" class="middle">
    <?php if (!$this->customer->isLogged()) { ?>    
    <form action="<?php echo str_replace('&', '&amp;', $action); ?>" method="post" enctype="multipart/form-data" id="loginX1">
		<b><?php echo $entry_email; ?></b><br />
            <input type="text" name="emailX1" />
            <br />            
            <b><?php echo $entry_password; ?></b><br />
            <input type="password" name="passwordX1" />
            <br />            
            <div style="text-align: center;"><a onclick="$('#loginX1').submit();" class="button"><span><?php echo $button_login; ?></span></a></div>
            <?php if ($redirect) { ?>
            <input type="hidden" name="redirect" value="<?php echo str_replace('&', '&amp;', $redirect); ?>" />
			<?php } ?>
    </form><br />
    <!--
	<div style="margin-top: 12px; text-align: center;"><a href="<?php echo $login; ?>" class="button"><span><?php echo $button_login; ?></span></a></div>
    -->
    <ul>
      <li><a href="<?php echo $account_create; ?>"><?php echo $text_account_create; ?></a></li>
      <li><a href="<?php echo $forgotten; ?>"><?php echo $text_forgotten; ?></a><br /></li>
    </ul>   
	<?php } else { ?>
	<b><?php echo $text_my_account; ?></b>
    <ul>
      <li><a href="<?php echo $information; ?>"><?php echo $text_information; ?></a></li>
      <li><a href="<?php echo $password; ?>"><?php echo $text_password; ?></a></li>
      <li><a href="<?php echo $address; ?>"><?php echo $text_address; ?></a></li>
    </ul><br />
    <b><?php echo $text_my_orders; ?></b>
    <ul>
      <li><a href="<?php echo $history; ?>"><?php echo $text_history; ?></a></li>
      <li><a href="<?php echo $download; ?>"><?php echo $text_download; ?></a></li>
    </ul><br />
    <b><?php echo $text_my_newsletter; ?></b>
    <ul>
      <li><a href="<?php echo $newsletter; ?>"><?php echo $text_newsletter; ?></a></li>
    </ul><br />	
	<div style="margin-top: 12px; text-align: center;"><a href="<?php echo $logout; ?>" class="button"><span><?php echo $button_logout; ?></span></a></div>
  <?php } ?>

  </div>  
  <div class="bottom">&nbsp;</div>
</div>

<script type="text/javascript"><!--
$('#loginX1 input').keydown(function(e) {
	if (e.keyCode == 13) {
		$('#loginX1').submit();
	}
});
//--></script>
